<?php

/* disease/edit.twig */
class __TwigTemplate_f95ea33cacfbf662f6448e2259440956a67b857dc4647009a41f83e56699982b extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("base.twig", "disease/edit.twig", 1);
        $this->blocks = array(
            'title' => array($this, 'block_title'),
            'head' => array($this, 'block_head'),
            'content' => array($this, 'block_content'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "base.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_title($context, array $blocks = array())
    {
        echo "edit";
    }

    // line 4
    public function block_head($context, array $blocks = array())
    {
        // line 5
        echo "    ";
        $this->displayParentBlock("head", $context, $blocks);
        echo "

";
    }

    // line 8
    public function block_content($context, array $blocks = array())
    {
        // line 9
        echo "

        <div class=\"header\">
            <h1>Page Title</h1>
            <h2>";
        // line 13
        echo twig_escape_filter($this->env, (isset($context["msg"]) ? $context["msg"] : null), "html", null, true);
        echo "</h2>
        </div>

        <div class=\"content\">            


            <form class=\"pure-form pure-form-aligned\" action=\"/disease/edit/";
        // line 19
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "id", array()), "html", null, true);
        echo "\" method=\"post\" enctype=\"multipart/form-data\">
                <fieldset>
                    <div class=\"pure-control-group\">
                        <label for=\"name\">病种</label>
                        <input id=\"name\" name=\"name\" type=\"text\" placeholder=\"病种\" value=\"";
        // line 23
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "name", array()), "html", null, true);
        echo "\">
                    </div>

                    <div class=\"pure-control-group\">
                        <label for=\"treatment\">疗法</label>
                        <input id=\"treatment\" type=\"text\" name=\"treatment\" placeholder=\"疗法\" value=\"";
        // line 28
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "treatment", array()), "html", null, true);
        echo "\">
                    </div>

                    <div class=\"pure-control-group\">
                        <label for=\"description\">简介</label>
                        <textarea id=\"description\" name=\"description\" value=\"";
        // line 33
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "description", array()), "html", null, true);
        echo "\"></textarea>
                    </div>

                    <div class=\"pure-control-group\">
                        <label for=\"picture\">疗法图</label>
                        <input id=\"picture\" name=\"picture\" type=\"file\" >
                        <div class=\"pure-g\">
                            <div class=\"pure-u-1-2\"><p></p></div>
                            <div class=\"pure-u-1-2\"><p>";
        // line 41
        if ($this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "picture", array())) {
            echo "<img class=\"pure-img\" src=\"/";
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "picture", array()), "html", null, true);
            echo "\">";
        }
        echo "</p></div>
                        </div>
                    </div>

                    <div class=\"pure-controls\">
                        <input  name=\"id\" type=\"hidden\" value=\"";
        // line 46
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["disease"]) ? $context["disease"] : null), "id", array()), "html", null, true);
        echo "\">
                        <button type=\"submit\" class=\"pure-button pure-button-primary\">添加</button>
                    </div>
                </fieldset>
            </form>


        </div>


        
";
    }

    public function getTemplateName()
    {
        return "disease/edit.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  111 => 46,  99 => 41,  88 => 33,  80 => 28,  72 => 23,  65 => 19,  56 => 13,  50 => 9,  47 => 8,  39 => 5,  36 => 4,  30 => 3,  11 => 1,);
    }
}
/* {% extends "base.twig" %}*/
/* */
/* {% block title %}edit{% endblock %}*/
/* {% block head %}*/
/*     {{ parent() }}*/
/* */
/* {% endblock %}*/
/* {% block content %}*/
/* */
/* */
/*         <div class="header">*/
/*             <h1>Page Title</h1>*/
/*             <h2>{{msg}}</h2>*/
/*         </div>*/
/* */
/*         <div class="content">            */
/* */
/* */
/*             <form class="pure-form pure-form-aligned" action="/disease/edit/{{disease.id}}" method="post" enctype="multipart/form-data">*/
/*                 <fieldset>*/
/*                     <div class="pure-control-group">*/
/*                         <label for="name">病种</label>*/
/*                         <input id="name" name="name" type="text" placeholder="病种" value="{{disease.name}}">*/
/*                     </div>*/
/* */
/*                     <div class="pure-control-group">*/
/*                         <label for="treatment">疗法</label>*/
/*                         <input id="treatment" type="text" name="treatment" placeholder="疗法" value="{{disease.treatment}}">*/
/*                     </div>*/
/* */
/*                     <div class="pure-control-group">*/
/*                         <label for="description">简介</label>*/
/*                         <textarea id="description" name="description" value="{{disease.description}}"></textarea>*/
/*                     </div>*/
/* */
/*                     <div class="pure-control-group">*/
/*                         <label for="picture">疗法图</label>*/
/*                         <input id="picture" name="picture" type="file" >*/
/*                         <div class="pure-g">*/
/*                             <div class="pure-u-1-2"><p></p></div>*/
/*                             <div class="pure-u-1-2"><p>{% if disease.picture %}<img class="pure-img" src="/{{disease.picture}}">{% endif %}</p></div>*/
/*                         </div>*/
/*                     </div>*/
/* */
/*                     <div class="pure-controls">*/
/*                         <input  name="id" type="hidden" value="{{disease.id}}">*/
/*                         <button type="submit" class="pure-button pure-button-primary">添加</button>*/
/*                     </div>*/
/*                 </fieldset>*/
/*             </form>*/
/* */
/* */
/*         </div>*/
/* */
/* */
/*         */
/* {% endblock %}*/
